package decorate;

import component.Zh0202GrowUp;
import component.Zh0202Man;

/**
 * @author: zh
 * @date: 2021/12/2 17:36
 * @version: 1.0
 */
public class Zh0202CarMan extends Zh0202Decorate {
    public Zh0202CarMan(Zh0202GrowUp growUp) {
        super(growUp);
        System.out.println("他向着买车的方向成长");
    }

    @Override
    public String confidenceMan() {
        return "他有车!"+growUp.confidenceMan();
    }
}
